cmake_minimum_required(VERSION 3.5.1)
project(lenet_plugin)

add_compile_options(-std=c++11 -O3 -Wall)

# set(CMAKE_CXX_COMPILER aarch64-linux-gnu-g++)
# set(CMAKE_C_COMPILER aarch64-linux-gnu-gcc)

# include_directories("/usr/local/lynxi/sdk/include/lyn_api/")
# add_library(LenetPlugin SHARED lenetLib.cpp)

if (WITH_CROSS_COMPILE)
    message("cross compile")
    set(CMAKE_CXX_COMPILER "aarch64-linux-gnu-g++")
    set(LIBRARY_OUTPUT_PATH ../../cross_compiled_lib)

    include_directories("/usr/local/lynxi/sdk/include/lyn_api/")
    add_library(LenetPlugin SHARED lenetLib.cpp)
else()
    message("not compile lenet plugin")
endif()